package com.backend.service.blog;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.dto.AddArticleDTO;
import com.pojo.entity.Article;
import com.pojo.vo.ArticleVO;

import java.util.List;

public interface ArticleService extends IService<Article> {
    Integer addArticle(AddArticleDTO addArticleDTO);

    Integer removeArticle(Long id);

    Integer updateArticle(Long id, AddArticleDTO addArticleDTO);

    ArticleVO getArticleById(Long id);

    List<ArticleVO> getArticles(Long id);

    Integer likeArticle(Long id);

    Integer setEssence(Long id);

    Integer setTop(Long id);
}
